package cn.edu.sgu.www.mhxysy.service.chongwu.impl;

import cn.edu.sgu.www.mhxysy.entity.chongwu.ChongwuType;
import cn.edu.sgu.www.mhxysy.mapper.chongwu.ChongwuTypeMapper;
import cn.edu.sgu.www.mhxysy.service.chongwu.ChongwuTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Service
public class ChongwuTypeServiceImpl implements ChongwuTypeService {

    private final ChongwuTypeMapper chongwuTypeMapper;

    @Autowired
    public ChongwuTypeServiceImpl(ChongwuTypeMapper chongwuTypeMapper) {
        this.chongwuTypeMapper = chongwuTypeMapper;
    }

    @Override
    public List<ChongwuType> selectAll() {
        return chongwuTypeMapper.selectList(null);
    }

    @Override
    public ChongwuType selectById(Integer id) {
        return chongwuTypeMapper.selectById(id);
    }

}